<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box{
      width: 200px;
      height: 200px;
      background-color: #7fb4b3;
    }
  </style>
</head>
<body>
  <div id="app">
      <input type="text" v-model="msg">
      <br>
      {{msg}}
      <hr>
      性别：
      <label for="male">男</label>
      <input type="radio" value="男" id="male" v-model="gender">
      <label for="female">女</label>
      <input type="radio" value="女" id="female" v-model="gender">
      <br>
      {{gender}}
      <hr>
      爱好：
      <br>
      <label for="lq">篮球</label>
      <input type="checkbox" value="篮球" id="lq" v-model="hobbies">
      <label for="zq">足球</label>
      <input type="checkbox" value="足球" id="zq" v-model="hobbies">
      <label for="wq">网球</label>
      <input type="checkbox" value="网球" id="wq" v-model="hobbies">
      <br>
      {{hobbies}}

      <hr>

      复选框 绑定checked属性 
      <input type="checkbox" v-model="isBeauty">
      {{ isBeauty? '美女': '好姑娘' }}

      <hr>
      下拉列表

      <!-- <select v-model="city">
        <option value="芜湖">芜湖</option>
        <option value="合肥">合肥</option>
        <option value="蚌埠">蚌埠</option>
        <option value="安庆">安庆</option>
      </select>

      {{city}} -->
      <select v-model="cities" multiple size="4">
        <option value="芜湖">芜湖</option>
        <option value="合肥">合肥</option>
        <option value="蚌埠">蚌埠</option>
        <option value="安庆">安庆</option>
      </select>

      {{cities}}
      
  </div>

  <script src="./vue.global.js"></script>
  <script>
    const msg2 = '哈哈哈'
    const { createApp } = Vue;
    const app = createApp({
      data(){
        return {
          msg: '初始值',
          gender: '女',
          hobbies: ['足球'],
          isBeauty: true,
          city: '合肥',
          cities: ['合肥']
        }
      }
    });
    app.mount('#app');
  </script>
</body>
</html>